package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchDailyPressureQualifiedRateReportsMapper;
import com.ruoyi.system.domain.DispatchDailyPressureQualifiedRateReports;
import com.ruoyi.system.service.IDispatchDailyPressureQualifiedRateReportsService;

/**
 * 压力合格率日报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchDailyPressureQualifiedRateReportsServiceImpl implements IDispatchDailyPressureQualifiedRateReportsService 
{
    @Autowired
    private DispatchDailyPressureQualifiedRateReportsMapper dispatchDailyPressureQualifiedRateReportsMapper;

    /**
     * 查询压力合格率日报
     * 
     * @param dailyPressureQualifiedRateReportsId 压力合格率日报主键
     * @return 压力合格率日报
     */
    @Override
    public DispatchDailyPressureQualifiedRateReports selectDispatchDailyPressureQualifiedRateReportsByDailyPressureQualifiedRateReportsId(Long dailyPressureQualifiedRateReportsId)
    {
        return dispatchDailyPressureQualifiedRateReportsMapper.selectDispatchDailyPressureQualifiedRateReportsByDailyPressureQualifiedRateReportsId(dailyPressureQualifiedRateReportsId);
    }

    /**
     * 查询压力合格率日报列表
     * 
     * @param dispatchDailyPressureQualifiedRateReports 压力合格率日报
     * @return 压力合格率日报
     */
    @Override
    public List<DispatchDailyPressureQualifiedRateReports> selectDispatchDailyPressureQualifiedRateReportsList(DispatchDailyPressureQualifiedRateReports dispatchDailyPressureQualifiedRateReports)
    {
        return dispatchDailyPressureQualifiedRateReportsMapper.selectDispatchDailyPressureQualifiedRateReportsList(dispatchDailyPressureQualifiedRateReports);
    }

    /**
     * 新增压力合格率日报
     * 
     * @param dispatchDailyPressureQualifiedRateReports 压力合格率日报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchDailyPressureQualifiedRateReports(DispatchDailyPressureQualifiedRateReports dispatchDailyPressureQualifiedRateReports)
    {
        return dispatchDailyPressureQualifiedRateReportsMapper.insertDispatchDailyPressureQualifiedRateReports(dispatchDailyPressureQualifiedRateReports);
    }

    /**
     * 修改压力合格率日报
     * 
     * @param dispatchDailyPressureQualifiedRateReports 压力合格率日报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchDailyPressureQualifiedRateReports(DispatchDailyPressureQualifiedRateReports dispatchDailyPressureQualifiedRateReports)
    {
        return dispatchDailyPressureQualifiedRateReportsMapper.updateDispatchDailyPressureQualifiedRateReports(dispatchDailyPressureQualifiedRateReports);
    }

    /**
     * 批量删除压力合格率日报
     * 
     * @param dailyPressureQualifiedRateReportsIds 需要删除的压力合格率日报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchDailyPressureQualifiedRateReportsByDailyPressureQualifiedRateReportsIds(Long[] dailyPressureQualifiedRateReportsIds)
    {
        return dispatchDailyPressureQualifiedRateReportsMapper.deleteDispatchDailyPressureQualifiedRateReportsByDailyPressureQualifiedRateReportsIds(dailyPressureQualifiedRateReportsIds);
    }

    /**
     * 删除压力合格率日报信息
     * 
     * @param dailyPressureQualifiedRateReportsId 压力合格率日报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchDailyPressureQualifiedRateReportsByDailyPressureQualifiedRateReportsId(Long dailyPressureQualifiedRateReportsId)
    {
        return dispatchDailyPressureQualifiedRateReportsMapper.deleteDispatchDailyPressureQualifiedRateReportsByDailyPressureQualifiedRateReportsId(dailyPressureQualifiedRateReportsId);
    }
}
